package cn.e2win.biz.dbo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
//导师资料
@Entity
@Table(name = "ds_emp")
public class DsEmp extends BaseEmp {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

		//编号--结算单
		@Id
		@Basic(optional = false)
		@GeneratedValue(strategy = GenerationType.IDENTITY)
		@Column(name = "id", nullable = false)
		private Integer id;

		private Integer adminUserId;//专管员ID
		private Integer adminUserId2;//专管员2ID


		private String mdfStatus;//待审核_所在组织 名称  SUBMITED REJECTED
		private String dwNameNew;//待审核_所在组织 名称 
		private String zwNew;//待审核_职务 
		private String zcNew;//待审核_职务
		private String emailNew;//待审核_邮箱
		private String honor;
		private String honorNew;
		private Integer orderInt;//排序字段
		
		@Transient
		private String labelFocusOn;//关注领域
		@Transient
		private String labelIndustry;//所在行业
		@Transient
		private String labelHelpFor;//辅导专长

		public Notice getApproveNotice(){
			Notice notice = new Notice(this);
			String msg = "";
			//提交审核时，发消息给adminUserId
			if("SUBMITED".equals(this.getApproveStatus())){
				notice.setToUserId(this.getAdminUserId());
				msg = "导师 【" + this.getEmpName() + "】 已提交审核，需要您的审核，请知晓！" ;
			}else if("APPROVED".equals(this.getApproveStatus()) || "REJECTED".equals(this.getApproveStatus())) {
				
				notice.setToUserId(this.getCreateById());
				if("APPROVED".equals(this.getApproveStatus())){
					msg = "导师 【" + this.getEmpName() + "】 已被审核通过，请知晓！";  
				}else if("REJECTED".equals(this.getApproveStatus())){
					msg = "导师 【" + this.getEmpName() + "】 已被审核驳回，请知晓！";
					
				}
				
			}
			notice.setNoticeType("APPROVE");
			notice.setNoticeDesc(msg);
			notice.setEntityType(this.getClass().getSimpleName());
			notice.setEntityId(this.id);
			return notice;
		}




		public DsEmp() {
			super();
		}
		public DsEmp(Integer id) {
			this.id=id;
		}
		
		
		
		public Integer getId() {
			return id;
		}
		public void setId(Integer id) {
			this.id = id;
		}
		public Integer getAdminUserId() {
			return adminUserId;
		}
		public void setAdminUserId(Integer adminUserId) {
			this.adminUserId = adminUserId;
		}
		public Integer getAdminUserId2() {
			return adminUserId2;
		}
		public void setAdminUserId2(Integer adminUserId2) {
			this.adminUserId2 = adminUserId2;
		}
		public String getDwNameNew() {
			return dwNameNew;
		}
		public void setDwNameNew(String dwNameNew) {
			this.dwNameNew = dwNameNew;
		}
		public String getZwNew() {
			return zwNew;
		}
		public void setZwNew(String zwNew) {
			this.zwNew = zwNew;
		}
		public String getZcNew() {
			return zcNew;
		}
		public void setZcNew(String zcNew) {
			this.zcNew = zcNew;
		}
		public String getEmailNew() {
			return emailNew;
		}
		public void setEmailNew(String emailNew) {
			this.emailNew = emailNew;
		}
		public String getHonor() {
			return honor;
		}
		public void setHonor(String honor) {
			this.honor = honor;
		}
		public String getHonorNew() {
			return honorNew;
		}
		public void setHonorNew(String honorNew) {
			this.honorNew = honorNew;
		}
		public Integer getOrderInt() {
			return orderInt;
		}
		public void setOrderInt(Integer orderInt) {
			this.orderInt = orderInt;
		}


		public String getLabelFocusOn() {
			return labelFocusOn;
		}
		public void setLabelFocusOn(String labelFocusOn) {
			this.labelFocusOn = labelFocusOn;
		}
		public String getLabelIndustry() {
			return labelIndustry;
		}
		public void setLabelIndustry(String labelIndustry) {
			this.labelIndustry = labelIndustry;
		}
		public String getLabelHelpFor() {
			return labelHelpFor;
		}
		public void setLabelHelpFor(String labelHelpFor) {
			this.labelHelpFor = labelHelpFor;
		}




		public String getMdfStatus() {
			return mdfStatus;
		}




		public void setMdfStatus(String mdfStatus) {
			this.mdfStatus = mdfStatus;
		}
		
}
